
package com.craterhill.java.ems.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ems.common.beans.Country;
import com.craterhill.java.ems.dao.CountryDao;

@Repository
public class CountryDaoImpl extends AbstractDao<Country> implements CountryDao {

	@Autowired
	public CountryDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	public List<Country> findAll() {
		return super.findMultipleObject(FIND_ALL_COUNTRY, new CountryExtractor());
	}

	public int save(final Country country) {
		return 0;
	}

	public boolean update(final Country country) {
		return false;
	}

	public boolean remove(final Integer... countryId) {
		return false;
	}

	public Country find(final int countryId) {
		return null;
	}
}
